package org.jeecg.modules.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description: 更新管理
 * @Author: sean
 * @Date:   2024-09-28
 * @Version: V1.0
 */
@Data
@TableName("app_client_upgrade")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_client_upgrade对象", description="更新管理")
public class AppUpgrade implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
	/**客户端id*/
	@Excel(name = "客户端id", width = 15)
    @ApiModelProperty(value = "客户端id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long clientId;
	/**版本名称*/
	@Excel(name = "版本名称", width = 15)
    @ApiModelProperty(value = "版本名称")
    private String versionName;
	/**版本编号*/
	@Excel(name = "版本编号", width = 15)
    @ApiModelProperty(value = "版本编号")
    private Integer versionCode;
	/**版本说明*/
	@Excel(name = "版本说明", width = 15)
    @ApiModelProperty(value = "版本说明")
    private String upgradeContent;
	/**是否强制更新*/
	@Excel(name = "是否强制更新", width = 15)
    @ApiModelProperty(value = "是否强制更新")
    private String forceUpdate;
    /**应用包类型 1-安装包 2-增量包 3-应用市场*/
    @Excel(name = "应用包类型 1-安装包 2-增量包 3-应用市场", width = 15)
    @ApiModelProperty(value = "应用包类型 1-安装包 2-增量包 3-应用市场")
    private String pkgType;
    @TableField(exist = false)
    private String pkgTypeTxt;
	/**链接*/
	@Excel(name = "链接", width = 15)
    @ApiModelProperty(value = "链接")
    private String url;
	/**归属运营商*/
    @ApiModelProperty(value = "归属运营商")
    private String sysOrgCode;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
	/**是否删除（0：否、1：是）*/
	@Excel(name = "是否删除（0：否、1：是）", width = 15)
    @ApiModelProperty(value = "是否删除（0：否、1：是）")
    @TableLogic(value="0", delval = "1")
    private Integer isDelete;
}
